<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="../css/detail.css">
  <title>商品详情页面</title>
  <script src="../libs/requirejs/require.min.js" data-main="../js/detail"></script>
</head>
<body>
  <div>这是详情内容</div>

  <div class="container"></div>
  
  <script type="text/html" id="photo-template">
    <img src="{{photos[0].url}}" data-zoom-image="{{photos[0].url}}" class="small-image" />

    <div id="gallery">
      {{each photos photo}}
      <a href="#" data-zoom-image="{{photo.url}}" data-image="{{photo.url}}">
        <img class="thumb-image" src="{{photo.url}}" alt="">
      </a>
      {{/each}}
    </div>
  </script>
</body>
</html>